package com.sky.mapper;

import com.sky.annotations.AutoFill;
import com.sky.entity.DishFlavor;
import com.sky.enumeration.OperationType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DishFlavorMapper {
    void insertBatch(List<DishFlavor> flavors);

    void deleteBatchByDishIds(String[] dishIds);

    @Select("select * from dish_flavor where dish_id = #{id}")
    List<DishFlavor> getFlavorByDishId(Integer id);

    void update(List<DishFlavor> flavors);

}
